package com.gary.stringTable;

import javax.sound.midi.Soundbank;

/**
 * @author peng_rui
 * @date 2022/5/13
 */
public class Example {
    String str = new String("good");
    char[] ch = new char[]{'a', 'b', 'c'};

    public static void main(String[] args) {
        Example example = new Example();
        example.exchange(example.str, example.ch);
        System.out.println(example.str);
        System.out.println(example.ch);
    }

    public void exchange(String str, char[] ch) {
        str = "test ok";
        ch[0] = 'g';
    }
}
